package com.ship.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.contract.bean.ConExcellentCases;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author tangshixuan
 * @date 2023-9-1
 */
public interface ConExcellentCasesMapper extends BaseMapper<ConExcellentCases> {
    /**
     * 根据合同id查询主id
     *
     * @param conId
     * @return
     */
    @Select("SELECT * FROM con_excellent_cases WHERE con_id = #{conId} and status<=1")
    ConExcellentCases getAllByConId (@Param("conId") Long conId);
}
